//
//  Animal.m
//  对象初始化
//
//  Created by apple on 15/8/8.
//  Copyright (c) 2015年 戴维营. All rights reserved.
//

#import "Animal.h"

@implementation Animal

- (instancetype)init
{
    return  [self initWithWeight:1.0 height:1.0];

}

- (instancetype)initWithWeight:(float)weight height:(float)height;
{
    if (self = [super init])
    {
        _height = height;
        _weight = weight;
    }
    return self;
}

+ (instancetype)set
{
   return [[self alloc] init];
}
- (void)change
{
    _weight = 3.0;
    _height = 4.0;
}
@end
